import Layout from '@/layout/index.vue'

export const constantRoute = [
    {
        path: "/404",
        name: "404",
        component: () => import("@/views/404.vue"),
    },
    {
        path: '/',
        name: 'layout',
        component: Layout,
        redirect: '/tool/chat',
    },
]

// export const asyncRoutes = [
//     {
//         path: '/tool',
//         name: 'tool',
//         component: () => import('@/layout/index.vue'),
//         redirect: '/tool/banzou',
//         children: [
//             {
//                 path: '/tool/banzou',
//                 name: 'banzou',
//                 component: () => import('@/views/HomeView.vue')
//             },
//             {
//                 path: '/tool/other',
//                 name: 'other',
//                 component: () => import('@/views/AboutView.vue')
//             },
//         ]
//     }
// ]

export const anyRoutes = {
    path: "/:pathMatch(.*)*",
    redirect: "/404",
    name: "Any",
}


